package com.ershi.spring.annotation.lookup;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;

@Component
public class Root {

	@Autowired
	Children child;

	@Lookup
	public Children getChild() {
		return child;
	}

	public void setChild(Children child) {
		this.child = child;
	}
}